package com.relax.order.feign;

import com.relax.order.dto.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @author mac
 */
@FeignClient(value = "inst-order-test", path = "/order")
public interface OrderFeign {
    @PostMapping("create")
    Order create(@RequestParam("userId") Integer userId);

    @PostMapping("updateForSeata")
    void updateForSeata(@RequestParam("id") Integer id);

}
